import ContextMenuComponent from './ContextMenu'

export const ContextMenu = {

    install(Vue, options) {
        Vue.prototype.$contextmenu = (menus, e) => {
            const $ContextMenu = Vue.extend(ContextMenuComponent);
            const propsData = {};

            const $concontextMenu = new $ContextMenu({propsData});
            const element = $concontextMenu.$mount().$el;
            document.body.appendChild(element);
            $concontextMenu.show(menus, e);
        }
    },

};
